package com.daocao.ds.api;


import com.daocao.ds.util.RBInfo;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by xsooy-pc on 2017/3/30.
 */

public class TokenInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request.Builder builder = chain.request().newBuilder();
        builder.header("Content-Type", "application/json")
                .header("accept", "*/*")
                .header("connection", "Keep-Alive")
                .header("rabitoken", "3443434343");
        return chain.proceed(builder.build());
    }

}
